cmake_minimum_required(VERSION 3.16)

project(jpeg_encoder)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

add_library(jpeg_encoder SHARED ${PROJECT_SOURCE_DIR}/jpeg_encoder/jpeg_encoder.cpp)

set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/install)
install(TARGETS jpeg_encoder LIBRARY DESTINATION lib)
install(FILES ${PROJECT_SOURCE_DIR}/jpeg_encoder/jpeg_encoder.h  DESTINATION include)